#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author:zhangcong
# Email:zc_92@sina.com


from django import template
from django.utils.safestring import mark_safe
register = template.Library()

from webadmin.views_dir.mongo_oper import get_db_obj
from bson.objectid import ObjectId

#
# @register.simple_tag
# def get_id_str(object):
#     user_obj = get_db_obj().user.find_one({"_id": ObjectId(create_user_id)})
#     return user_obj["username"]